package base.render.gui;

import java.awt.Color;
import java.util.Random;

import base.Start;
import base.render.ColorHandler;
import base.render.Render;

public abstract class Gui extends Render
{
	protected int x;
	protected int y;
	protected float rotation;
	
	public Gui(int par1, int par2, float par3)
	{
		this.x = par1;
		this.y = par2;
		this.rotation = par3;
	}
	
	public static Color getRandomColor(Random par1Random)
	{
		int i = par1Random.nextInt(0xFFFFFF);
		return ColorHandler.getColor(i);
	}
	
	public static Color getRandomBaseColor(Random par1Random)
	{
		int i = par1Random.nextInt(12);
		switch(i)
		{
		case 0:
			return Color.BLACK;
		case 1:
			return Color.BLUE;
		case 2:
			return Color.CYAN;
		case 3:
			return Color.DARK_GRAY;
		case 4:
			return Color.GRAY;
		case 5:
			return Color.GREEN;
		case 6:
			return Color.LIGHT_GRAY;
		case 7:
			return Color.MAGENTA;
		case 8:
			return Color.ORANGE;
		case 9:
			return Color.PINK;
		case 10:
			return Color.RED;
		case 11:
			return Color.WHITE;
		case 12:
			return Color.YELLOW;
		default:
			return Color.BLUE;
		}
	}
	
	public static int getWindowWidth()
	{
		return Start.WIN_WIDTH*Start.WIN_SCALE;
	}
	
	public static int getWindowHeight()
	{
		return Start.WIN_HEIGHT*Start.WIN_SCALE;
	}
}
